//
//  AppDeviceUtils.m
//  faceDemo
//
//  Created by golang on 2021/11/16.
//  Copyright © 2021 hisign. All rights reserved.
//

#import "AppDeviceUtils.h"
#import "sys/utsname.h"
#import <UIKit/UIKit.h>

@implementation AppDeviceUtils

+ (NSString *)getSystemVersion{
    return [UIDevice currentDevice].systemVersion;
}

+ (NSString *)getDeviceModel{
    struct utsname systemInfo;
    uname(&systemInfo);
    return [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding];
}

+ (NSString *)getUUID{
    return [[UIDevice currentDevice] identifierForVendor].UUIDString;
}

+ (NSString *)getAppName{
    return [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"];
}

+ (NSString *)getAppVersion{
    return [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
}

+ (NSString *)getAppBundleId{
    return [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];
}

@end
